#include<iostream>
using namespace std;

class Bug {
private:
    int nLegs;
    int nColor;

public:
    int nType;
    Bug(int legs, int color) : nLegs(legs), nColor(color) {}

    void PrintBug() {
        cout << "Legs: " << nLegs << ", Color: " << nColor << endl;
    }
};

class FlyBug : public Bug {
    int nWings;

public:
    FlyBug(int legs, int color, int wings) : Bug(legs, color), nWings(wings) {}

    void PrintBug() {
        Bug::PrintBug(); 
        cout << "Wings: " << nWings << endl;
    }
};

int main() {
    FlyBug fb(6, 3, 4); 
    fb.PrintBug();
    return 0;
}
